package com.aspose.cells;

class zbqb extends zbz {
   private static final com.aspose.cells.b.c.a.za a = new com.aspose.cells.b.c.a.za(new String[]{"Normal", "Comma", "Currency", "Percent", "Comma [0]", "Currency [0]", "Hyperlink", "Followed Hyperlink"});

   zbqb() {
      this.c(659);
      this.b(4);
   }

   void a(int var1, byte var2) {
      this.c = new byte[]{16, -128, 5, -1};
      var1 |= 32768;
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1), 0, this.c, 0, 2);
      this.c[2] = var2;
   }

   void a(int var1, String var2) {
      switch(a.a(var2)) {
      case 0:
         this.c = new byte[]{0, -128, 0, -1};
         var1 |= 32768;
         break;
      case 1:
         this.c = new byte[]{19, -128, 3, -1};
         var1 |= 32768;
         break;
      case 2:
         this.c = new byte[]{17, -128, 4, -1};
         var1 |= 32768;
         break;
      case 3:
         this.c = new byte[]{16, -128, 5, -1};
         var1 |= 32768;
         break;
      case 4:
         this.c = new byte[]{20, -128, 6, -1};
         var1 |= 32768;
         break;
      case 5:
         this.c = new byte[]{18, -128, 7, -1};
         var1 |= 32768;
         break;
      case 6:
         this.c = new byte[]{21, -128, 8, -1};
         var1 |= 32768;
         break;
      case 7:
         this.c = new byte[]{22, -128, 9, -1};
         var1 |= 32768;
         break;
      default:
         byte[] var3 = Encoding.getUnicode().a(var2);
         this.a((short)(var3.length + 5));
         this.c = new byte[this.d()];
         System.arraycopy(com.aspose.cells.b.a.zc.a(var2.length()), 0, this.c, 2, 2);
         this.c[4] = 1;
         System.arraycopy(var3, 0, this.c, 5, var3.length);
      }

      System.arraycopy(com.aspose.cells.b.a.zc.a(var1), 0, this.c, 0, 2);
   }
}
